package org.example.mall.admin.model.entity.manage;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 树层级关系
 * </p>
 *
 * @author hzq
 * @since 2022-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tree_relation")
@ApiModel(value="TreeRelation对象", description="树层级关系")
public class TreeRelation extends Model<TreeRelation> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父节点id")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "子节点id")
    @TableField("children_id")
    private Integer childrenId;

}
